//
//  MyTableViewController.m
//  HappyBug
//
//  Created by liulei on 2018/11/1.
//  Copyright © 2018年 www.hc.com.cn. All rights reserved.
//
#import "MJRefreshNormalHeader.h"
#import "MyTableViewController.h"
static const CGFloat MJDuration = 1.0;
#define MJRandomData [NSString stringWithFormat:@"%d", arc4random_uniform(1000000)]
@interface MyTableViewController ()

@end

@implementation MyTableViewController{
    NSMutableArray  *tabledata;
    UILabel *label;
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view setBackgroundColor:[UIColor whiteColor]];
    [self initView];
}
-(void)initView{
    
    label =[[UILabel alloc]init];
    label.frame =CGRectMake(150, 30, 120, 30);
    label.text=@"TEST";
    [self.view addSubview:label];
}
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    //动画开始
    [UIView beginAnimations:nil context:nil];
    //动画时间
    [UIView setAnimationDuration:0.5];
    
    label.frame =CGRectMake(140, 190, 120, 30);
    [UIView commitAnimations];


}


@end
